package org.csu.mypetstore.service;


import org.csu.mypetstore.domain.Account;
import org.csu.mypetstore.domain.UserInfo;
import org.csu.mypetstore.persistence.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class UserInfoService {

      @Autowired
      private UserInfoMapper userInfoMapper;

      public List<UserInfo> getUserInfoList(){
            return userInfoMapper.getUserInfoList();
      }

      public void updateUserInfo(UserInfo userInfo){ userInfoMapper.updateUserInfo(userInfo); }

      public void deleteUserInfo(String username) {
            userInfoMapper.deleteUserInfo(username);
      }
      public  UserInfo getUserInfo(String username){
            return userInfoMapper.getUserInfo(username);
      }






}
